<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<h1>
	<fmt:message key="user.form.title" />
</h1>
<c:url var="url" value="/user/saveForm.html" />
<form:form action="${url}" commandName="userEntity" method="POST">
	<form:hidden path="userid" />
	<fieldset>
		<div class="form-row">
			<label for="username"><fmt:message key="user.form.username" />:</label> 
			<span class="input"><form:input path="username" /></span>
		</div>	
		<div class="form-row">
			<label for="password"><fmt:message key="user.form.password" />:</label> 
			<span class="input"><form:password  path="password"/></span>
		</div>
		<div class="form-row">
			<label for="organization"><fmt:message key="user.form.organization" />:</label> 
			<span class="input"><form:input path="organization" /></span>
		</div>	
		<div class="form-row">
			<label for="organization"><fmt:message key="user.form.city" />:</label> 
			<span class="input"><form:input path="city" /></span>
		</div>	
		<div class="form-row">
			<label for="country"><fmt:message key="user.form.country" />:</label> 
			<span class="input"><form:input path="country" /></span>
		</div>	
		<div class="form-row">
			<label for="street"><fmt:message key="user.form.street" />:</label> 
			<span class="input"><form:input path="street" /></span>
		</div>
		<div class="form-row">
			<label for="telNumber"><fmt:message key="user.form.telNumber" />:</label> 
			<span class="input"><form:input path="telNumber" /></span>
		</div>
		<div class="form-row">
			<label for="email"><fmt:message key="user.form.email" />:</label> 
			<span class="input"><form:input path="email" /></span>
		</div>
		<div class="form-row">
			<label for="idCard"><fmt:message key="user.form.idCard" />:</label> 
			<span class="input"><form:input path="idCard" /></span>
		</div>
		<div class="form-buttons">
			<div class="button">
				<input name="submit" type="submit"
					value="<fmt:message key="button.save"/>" />
			</div>
		</div>
	</fieldset>
</form:form>
